package han;

import java.util.Scanner;

public class J08SungJuk {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		String result=" ";
		String name[] = new String[3];
		char grd[] = new char[3];
		int kor[] = new int[3];
		int eng[] = new int[3];
		int mat[]= new int[3];
		int tot[] = new int[3];
		double avg[] = new double[3];
		
		for(int i=0;i<=2;++i){
			System.out.println("이름은?");
			name[i] =sc.next();
			System.out.println("국어점수는?");
			kor[i] = sc.nextInt();
			System.out.println("영어점수는?");
			eng[i] = sc.nextInt();
			System.out.println("수학점수는?");
			mat[i] = sc.nextInt();
			tot[i] = kor[i] + eng[i] + mat[i];
			avg[i] =(double)tot[i] / 3;
			switch((int)avg[i]/10){
				case 10:
				case 9: grd[i]='수';break;
				case 8: grd[i]='우';break;
				case 7: grd[i]='미';break;
				case 6: grd[i]='양';break;
				default : grd[i]='가';break;
		}
			result+=name[i]+"\t"+kor[i]+"\t"+eng[i]+"\t"+mat[i]+"\t"+tot[i]+"\t"+avg[i]+"\t"+grd[i]+"\n";
		
		}
		System.out.println(result);
		sc.close();
	}

}
